package advanced.practice._1013;

import java.text.NumberFormat;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println(NumberFormat.getInstance().format(scanner.nextInt()+scanner.nextInt()).trim());
    }

    public static void main2(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int number=scanner.nextInt()+scanner.nextInt();
        if(number<0){
            System.out.print("-");
            number=-number;
        }
        StringBuilder builder=new StringBuilder();
        while (number>999){
            builder.insert(0,","+number%1000);
            number=number/1000;
        }
        builder.insert(0,number);
        System.out.println(builder.toString().trim());
    }
}
